import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from "@angular/forms";
import { PublicOfferingRoutingModule } from './public-offering-routing.module';

import { PublicDetailComponent } from './detail/detail.component';
// import { PublicListComponent } from './list/list.component';
import { PublicStepbarComponent } from './stepbar/stepbar.component';
import { RemouldComponent } from './remould/remould.component';
import { AppPaginationModule } from "../../widgets/pagination/pagination.module";
import { PublicEventService } from './public-event.service';
import { FileUploadModule } from 'ng2-file-upload';
import { CustomFormsModule } from 'ng2-validation';


import { FlatpickrModule, FLATPICKR } from '../../../assets/angularx-flatpickr';
import * as flatpickr from 'flatpickr';
export function flatpickrFactory() {
  return flatpickr;
}
@NgModule({
  imports: [
    CommonModule,
    PublicOfferingRoutingModule,
    FormsModule,
    CustomFormsModule,
    AppPaginationModule,
    FileUploadModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  providers: [PublicEventService],
  declarations: [PublicDetailComponent, PublicStepbarComponent, RemouldComponent],

})
export class PublicOfferingModule { }
